package com.feilong.modules.common.result;

import lombok.Getter;

@Getter
public enum  WxCloudRestCode {

    SUCCESS(0,"请求成功"),

    SYSTEM_ERROR(-1,"系统错误"),

    SYSTEM_WRONG(-1000,"系统错误"),

    ACCESS_TOKEN_ILLEGAL(40014,"AccessToken 不合法"),

    REQUEST_PARAM_ERROR(40097,"请求参数错误"),

    LACK_NECESSARY_PARAM(40101,"缺少必填参数"),

    LACK_ACCESS_TOKEN(41001,"缺少AccessToken"),

    HTTP_METHOD_ERROR(43002,"HTTP METHOD 错误"),

    POST_BODY_EMPTY(44002,"POST BODY 为空"),

    POST_BODY_ERROR(47001,"POST BODY 格式错误"),

    APP_UNOPEN_CLOUD(85088,"该APP未开通云开发");

    private int code;
    private String msg;

    WxCloudRestCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
